<template>
  <div v-loading="loading" element-loading-text="数据加载中，请稍后...">
    <el-row :gutter="20">
      <el-col :span="16">
        <div class="home-grid-content">
          <el-row>
            <el-col :span="24">
              <div class="div_title">
                <span><i class="el-icon-caret-right" style="color:red;"></i>季报填报</span>
              </div>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="13" style="padding-left:20px;">
              <div class="online_fill">
                <div style="line-height:20px;">
                  <i class="report-icon-editor" style="color: #fb8d50;"></i>
                  <span style="">季报分为三张表，请根据自己的业务情况选填</span>
                </div>
                <div class="online_fill_button">
                  <el-button type="warning" round @click="goReport">在线填报</el-button>
                </div>
              </div>
            </el-col>
            <el-col :span="11" style="padding-left:20px;">
              <div class="online_fill" style="margin-right: 20px;">
                <div  style="line-height:20px;">
                  <i class="report-icon-uoload" style="color:#13ce66;"></i>
                  <span style="">请上传填报完成之后的旅游情况Excel表</span>
                </div>
                <div class="online_fill_button">
                  <el-button type="success" round @click="goUpload">上传报表</el-button>
                </div>
              </div>
            </el-col>
          </el-row>
          <div v-if="false">
          <el-row>
            <el-col :span="24">
              <div class="div_title">
                <span><i class="el-icon-caret-right" style="color:red;"></i>基本情况</span>
              </div>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="10" :offset="2">
              <div class="online_fill">
                <div style="line-height:20px;">
                  <i class="report-icon-editor" style="color: #fb8d50;"></i>
                  <span style="">季报分为三张表，请根据自己的业务情况选填</span>
                </div>
                <div class="online_fill_button">
                  <el-button type="warning" round>在线填报</el-button>
                </div>
              </div>
            </el-col>
            <el-col :span="10" :offset="2">
              <div class="online_fill" style="margin-right: 20px;">
                <div  style="line-height:20px;">
                  <i class="report-icon-uoload" style="color:#13ce66;"></i>
                  <span style="">请上传填报完成之后的旅游情况Excel表</span>
                </div>
                <div class="online_fill_button">
                  <el-button type="success" round>上传报表</el-button>
                </div>
              </div>
            </el-col>
          </el-row>
          </div>
          <div v-if="false">
          <el-row>
            <el-col :span="24">
              <div class="div_title">
                <span><i class="el-icon-caret-right" style="color:red;"></i>财务状况</span>
              </div>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="10" :offset="2">
              <div class="online_fill">
                <div style="line-height:20px;">
                  <i class="report-icon-editor" style="color: #fb8d50;"></i>
                  <span style="">季报分为三张表，请根据自己的业务情况选填</span>
                </div>
                <div class="online_fill_button">
                  <el-button type="warning" round >在线填报</el-button>
                </div>
              </div>
            </el-col>
            <el-col :span="10" :offset="2">
              <div class="online_fill" style="margin-right: 20px;">
                <div  style="line-height:20px;">
                  <i class="report-icon-uoload" style="color:#13ce66;"></i>
                  <span style="">请上传填报完成之后的旅游情况Excel表</span>
                </div>
                <div class="online_fill_button">
                  <el-button type="success" round>上传报表</el-button>
                </div>
              </div>
            </el-col>
          </el-row>
          </div>
          <div v-if="false">
          <el-row>
            <el-col :span="24">
              <div class="div_title">
                <span><i class="el-icon-caret-right" style="color:red;"></i>集团填报</span>
              </div>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="10" :offset="2">
              <div class="online_fill">
                <div style="line-height:20px;">
                  <i class="report-icon-editor" style="color: #fb8d50;"></i>
                  <span style="">季报分为三张表，请根据自己的业务情况选填</span>
                </div>
                <div class="online_fill_button">
                  <el-button type="warning" round>在线填报</el-button>
                </div>
              </div>
            </el-col>
            <el-col :span="10" :offset="2">
              <div class="online_fill" style="margin-right: 20px;">
                <div  style="line-height:20px;">
                  <i class="report-icon-uoload" style="color:#13ce66;"></i>
                  <span style="">请上传填报完成之后的旅游情况Excel表</span>
                </div>
                <div class="online_fill_button">
                  <el-button type="success" round>上传报表</el-button>
                </div>
              </div>
            </el-col>
          </el-row>
          </div>
          <!-- <el-row>
            <el-col :span="24">
              <div class="div_title">
                <span><i class="el-icon-caret-right" style="color:red;"></i>通知通告</span>
              </div>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="24" style="height:190px;">
              <ul class="notice-board">
                <li v-for="(item,index) in noticeList" :key="index">
                  <el-row>
                    <el-col :span="18">
                      <span style="color:#1D8CE0">[{{item.partname}}]</span>
                      <span>{{item.title}}</span>
                    </el-col>
                    <el-col :span="6">
                      <span style="margin-left: 50px;float:right;">{{item.date}}</span>
                    </el-col>
                  </el-row>
                </li>
              </ul>
            </el-col>
          </el-row> -->
          
          <el-row>
            <el-col :span="24">
              <div class="div_title">
                <span><i class="el-icon-caret-right" style="color:red;"></i>提示</span>
              </div>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="24">
              <div style="margin:20px 20px;line-height:25px;">
                <span style="width:100%;">
                  根据《中华人民共和国统计法》和《国家旅游统计调查制度》的相关规定，企业必须依照相关规定，真实、准确、完整、及时的提供统计调查所需的资料。
                </span>
                <p style="color:red;margin-top:11px;">每次如实填写的企业将记入诚信档案。</p>
              </div>
            </el-col>
          </el-row>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="home-grid-content">
          <el-row>
            <el-col :span="24">
              <div class="div_title">
                <span><i class="el-icon-caret-right" style="color:red;"></i>{{fullYear}}年统计工作进度</span>
              </div>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="24">
              <ul class="audit">
                <!--<li>-->
                  <!--<div class="audit_div">-->
                    <!--<div class="audit_div_first">基本情况审核</div>-->
                    <!--<p style="color:#1F2D3D;width:100%;">江苏省旅游局审核通过</p>-->
                    <!--<div style="padding-top:15px;">-->
                      <!--<el-tag type="success">审核通过</el-tag>-->
                    <!--</div>-->
                  <!--</div>-->
                <!--</li>-->
                <li>
                    <div class="audit_div">
                      <div class="audit_div_first">季报审核</div>
                      <div style="padding-top:15px;">
                        <el-tag :type="process.type ? process.type : ''" >{{process.title}}</el-tag>
                      </div>
                    </div>
                </li>
                <!--<li>-->
                  <!--<div class="audit_div">-->
                    <!--<div class="audit_div_first">财务状况审核</div>-->
                    <!--<p style="color:#1F2D3D;width:100%;">江苏省旅游局审核退回</p>-->
                    <!--<div style="padding-top:15px;">-->
                      <!--<el-tooltip  placement="bottom" effect="light" >-->
                        <!--<div slot="content">审核退回原因</div>-->
                        <!--<el-tag type="danger">审核退回</el-tag>-->
                      <!--</el-tooltip>-->
                    <!--</div>-->
                  <!--</div>-->
                <!--</li>-->
                <!--<li>-->
                  <!--<div class="audit_div">-->
                    <!--<div class="audit_div_first">集团填报审核</div>-->
                    <!--<p style="color:#1F2D3D;width:100%;">江苏省旅游局审核退回</p>-->
                    <!--<div style="padding-top:15px;">-->
                      <!--<el-tooltip  placement="bottom" effect="light" >-->
                        <!--<div slot="content">审核退回原因</div>-->
                        <!--<el-tag type="danger">审核退回</el-tag>-->
                      <!--</el-tooltip>-->
                    <!--</div>-->
                  <!--</div>-->
                <!--</li>-->
              </ul>
            </el-col>
          </el-row>
        </div>
      </el-col>
    </el-row>
   
    <el-row style="padding:20px 0px;">
      <el-col :span="24">
        <div class="home-grid-content">
          <el-row>
            <el-col :span="24">
              <div class="div_title">
                <span><i class="el-icon-caret-right" style="color:red;"></i>季报填报说明</span>
              </div>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="24">
              <div style="margin:20px 20px;">
                <ul class="results_doc">
                  <li>
                    <span>1、本表由辖区内所有从事相关业务的旅行社填报，报送时间为每季后15日内；</span>
                  </li>
                  <li>
                    <span>2、季报分为三张表：外联接待入境旅游情况、组织出境旅游情况 、组织接待国内旅游情况；请旅行社根据自己的业务情况填写。</span>
                  </li>
                  <li>
                    <span>3、提交之后由上级旅游局审核，如本次填报被旅游局退回，则需要重新填报，如被省级旅游局审核通过，则本次季报填报完成；</span>
                  </li>
                  <li>
                    <span>4、请及时关注审核情况。</span>
                  </li>
                </ul>
              </div>
            </el-col>
          </el-row>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapGetters, mapActions } from "vuex";
export default {
  mounted() {
    this.getSupportInfo();
  },
  computed: {
    ...mapGetters(["supportinfo", "process", "agencyinfo", "sysinfo"])
  },
  created() {
    this.loading = true;
    this.getProcess()
      .then(
        res => {
          this.getSupportInfo().then(res => {},error=>{})
        },
        error => {
          this.$message.error(error.errorMessage);
        }
      )
      .finally(() => {
        this.loading = false;
      });
  },
  data() {
    return {
      fullYear: new Date().getFullYear(),
      loading: false
    };
  },
  methods: {
    ...mapActions(["getSupportInfo", "getProcess"]),
    goReport(){
      this.$router.push("/tawstb");
    },
    goUpload(){
      this.$router.push("/taupload")
    }
  }
};
</script>
<style scoped>
.home-grid-content {
  border-radius: 4px;
  border: 1px solid #cccccc;
  height: auto;
  box-shadow: 1px 1px 1px #99a9bf;
}

.notice-board {
  margin: 5px 10px;
}

.notice-board li {
  padding: 9px;
  list-style-type: none;
}

.notice-board li:hover {
  background-color: #f0f8ff;
}

.support {
  margin: 5px 10px;
}

.support li {
  padding: 10px 10px;
  list-style-type: none;
}

.audit {
  margin: 0px 40px;
}

.audit li {
  padding: 20px;
  list-style-type: none;
  border-bottom: 1px solid #e5e5e5;
}

.results_doc {
  margin: 5px 10px;
}

.results_doc li {
  padding: 10px;
  list-style-type: none;
}

.audit_div {
  text-align: center;
  height: 90px;
}

.audit_div_first {
  width: 100%;
  padding: 5px 0px;
  font-weight: bold;
  font-size: 25px;
  color: #20a0ff;
}

.div_title {
  height: 40px;
  line-height: 40px;
  padding: 0px 20px;
  background-color: #f6f6f7;
  font-size: 16px;
  border-bottom: 1px solid #cccccc;
  border-top: 1px solid #cccccc;
}

.online_fill {
  margin: 20px 10px;
  height: 80px;
  display: inline-block;
}

.online_fill span {
  display: block;
  float: right;
  color: #8492a6;
}

.online_fill_button {
  width: 100%;
  text-align: center;
  padding-top: 20px;
}
</style>